<html >
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Imprime pago empresa</title>
        <link rel="stylesheet" type="text/css" href="css/index.css" />
        <link rel="stylesheet" type="text/css" href="css/form.css" />  
        <link rel="stylesheet" href="css/example.css" TYPE="text/css" MEDIA="screen">
        <script type="text/javascript" src="js/bsn.AutoSuggest_c_2.0.js"></script>
        <script src="js/jquery-1.2.6.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="js/tabber.js"></script>
        <script type="text/javascript">

            /* Optional: Temporarily hide the "tabber" class so it does not "flash"
            on the page as plain HTML. After tabber runs, the class is changed
            to "tabberlive" and it will appear. */

            document.write('<style type="text/css">.tabber{display:none;}<\/style>');
        </script>
        <script>
            function cerrar()
            {
                parent.$.fancybox.close();
            }
        </script>
        <script type="text/javascript" src="js/jquery.tools.min.js"></script>

    </head>
    <body style="margin: 0px; padding: 0px;" >

        <?php
            include_once('db.php'); 
             include_once('numero_a_letras.php');    
             
            $folio_pago = $_REQUEST['p'];

            $result2 = mysql_query("select a.*, b.nombre from pago a, empresa b where a.id_empresa = b.id_empresa and a.id_pago =" .$folio_pago);
            while ($row2 = mysql_fetch_array($result2)) {
                $empresa =  $row2['nombre'];
                $cuenta =  $row2['id_empresa'];
                $cantidad_pago =  $row2['monto'];
            }


        ?>
        <div style="float: right;"><?php echo date("d-m-Y") ?></div>
        <div style="margin-left: 50px;"<span style="font-weight: bold; font-size: 20px; text-decoration: underline; ">Folio: <?php echo $folio_pago ?></span></div>
        <br>
        <div style="margin-left: 100px;">Recibi de: <span style="font-weight: bold; font-size: 24px;"><?php echo $empresa ?></span></div>
        <br>
        <div style="margin-left: 100px;">Con cuenta: <span style="font-weight: bold; font-size: 24px;"><?php echo $cuenta ?></span></div>
        <br>
        <div style="margin-left: 100px;"><span style="font-weight: bold; font-size: 24px;">La cantidad de: $<?php echo number_format($cantidad_pago,2) ?></span></div> 
        <div style="margin-left: 100px;"><span style="font-weight: bold; font-size: 16px;">Son: (<?php echo num2letras($cantidad_pago);   ?>)</span></div> 
        <div style="margin-left: 100px;"><span style="font-weight: bold; font-size: 16px;">Por concepto de abono</span></div> 
        <div style="margin-left: 100px;"><span style="font-size: 10px;">La cantidad que ampara este recibo sera aplicada en</span></div> 
        <div style="margin-left: 100px;"><span style="font-size: 10px;">primer termino a los intereses y en segundo termino al capital.</span></div> 
        <br><br><br>
        <div style="margin-left: 100px;"><span style="font-weight: bold; font-size: 12px;">_____________________________________________________________________________</span></div> 
        <div style="margin-left: 100px;"><span style="font-weight: bold; font-size: 12px;">Comercializadora Saade Khalilieh S.A.</span></div> 
    </body>
</html>
